﻿using System;

namespace ChatClient
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Enter username.");
            string name = Console.ReadLine();
            while (name == null || name.Length < 3 || name.Length > 15)
            {
                Console.WriteLine("Too short/long. Must be at least 3 characters, and at most 15 characters.");
                Console.WriteLine("Re-enter username.");
                name = Console.ReadLine();
            }
            var chatClient = new ChatExampleClient(name);
        }
    }
}
